package io.sdl.service;

import io.sdl.common.service.BaseService;
import io.sdl.dto.SdlPatientsDTO;
import io.sdl.entity.SdlPatientsEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 
 *
 * @author Dc 1211734836@qq.com
 * @since 1.0.0 2025-03-28
 */
public interface SdlPatientsService extends BaseService<SdlPatientsEntity> {

    //获取用户下的所有患者
    List<SdlPatientsDTO> getPatientsByUserId(String phone,Integer page,Integer limit);

    //获取总数
    Integer getNum(@Param("phone") String phone);

    SdlPatientsEntity saveUploadedFile(MultipartFile file, String fileType, Long patientId);

    //根据身份证号查询
    List<SdlPatientsEntity> getByIdCard(String idCard);
}